﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BussinessObject.ObjectOne;
using Class_Entity.ObjectTwo;
using ProjectHK3.App_Code;

namespace ProjectHK3
{
    public partial class Support : System.Web.UI.Page
    {
        B_FEEBACK fu = new B_FEEBACK();
        FeedBack fn = new FeedBack();

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button2_Click(object sender, EventArgs e)
        {  
            if(IsValid)

            {
                fn.FIRST_NAME = TextBox3.Text;
            fn.LAST_NAME = TextBox4.Text;
            fn.EMAIL = TextBox2.Text;
            fn.BODY = TextBox5.Text;
            fu.insertfeedback(fn);
            Alert.Show(" sucess");
        }
        
        }
    }
}